package com.example.entity.matirx;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 保养项目
 */
@ApiModel(description = "保养项目")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "keep_content")

public class KeepContent implements Serializable {
    /**
     * 保养项目id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "保养项目id",required = true,example = "1")
    private Integer id;

    /**
     * 保养计划id
     */
    @TableField(value = "plan_id")
    @ApiModelProperty(value = "保养计划id",required = true,example = "1")
    private Integer planId;

    /**
     * 保养项目名
     */
    @TableField(value = "content_name")
    @ApiModelProperty(value = "保养项目名",required = true)
    @Size(max = 255, message = "保养项目名最大长度要小于 255")
    private String contentName;

    /**
     * 保养项目详细
     */
    @TableField(value = "content_detial")
    @ApiModelProperty(value = "保养项目详细",required = true)
    @Size(max = 255, message = "保养项目详细最大长度要小于 255")
    private String contentDetial;

    /**
     * 备注
     */
    @TableField(value = "comments")
    @ApiModelProperty(value = "备注")
    @Size(max = 255, message = "备注最大长度要小于 255")
    private String comments;

    @TableField(value = "creator",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "")
    @Size(max = 255, message = "最大长度要小于 255")
    private String creator;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "")
    private LocalDateTime createTime;

    @TableField(value = "updater",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "")
    @Size(max = 255, message = "最大长度要小于 255")
    private String updater;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "")
    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;
}